package ${myPackage}.dao;

import java.util.List;
import org.apache.ibatis.session.RowBounds;
import org.springframework.dao.DataAccessException;

import ${myPackage}.criteria.${className}Criteria;
import ${myPackage}.domain.${className};

public interface ${className}Mapper{
	
	${className} selectByPrimaryKey(Integer ${primarykey}) throws DataAccessException;
	
	List<${className}> selectByCriteria(${className}Criteria criteria) throws DataAccessException;
	
	int deleteByPrimaryKey(Integer ${primarykey}) throws DataAccessException;
	
	int deleteByCriteria(${className}Criteria criteria) throws DataAccessException;
	
	int insert(${className} ${lowerName}) throws DataAccessException;
	
	int updateByPrimaryKeySelective(${className} ${lowerName}) throws DataAccessException;
	
	int updateByPrimaryKey(${className} ${lowerName}) throws DataAccessException;
	
	List<${className}> selectByPage(${className}Criteria criteria,RowBounds bounds) throws DataAccessException;
	 
	int countByCriteria(${className}Criteria criteria) throws DataAccessException;
    
}
